#include <stdio.h>
#define  Maxsize 10

typedef struct{
	int data[Maxsize];
	int length;
}SqList;

void InitList(SqList &L){
	for(int i = 0; i<Maxsize; i++){
		L.data[i] = 0;
	}
	L.length = 0;
}
int Length(SqList L){
	return L.length;
}

void PrintList(SqList L){
	for(int i=0; i<L.length; i++)
	{
		printf("data[%d] = %d\n",i,L.data[i]);
	}
	printf("\nPrintList Function finished!\n");
	
}
int main(){
	SqList L;    
	InitList(L);
	
	printf("The Sqlist length is %d\n",Length(L)); 
	
	PrintList(L); 
	return 0;
} 
